package ${(packageStr)!''}.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import ${(packageStr)!''}.domain.${(beanName)!''};
import ${(packageStr)!''}.query.${(beanName)!''}Query;
import ${(packageStr)!''}.mapper.${(beanName)!''}Mapper;
import ${(packageStr)!''}.service.${(beanName)!''}Service;

@Service
public class ${(beanName)!''}ServiceImpl implements ${(beanName)!''}Service
{
    @Autowired
    private ${(beanName)!''}Mapper ${(beanParam)!''}Mapper;


    @Override
    public ${(beanName)!''} select${(beanName)!''}ById(Long ${(beanParam)!''})
    {
        return ${(beanParam)!''}Mapper.select${(beanName)!''}ById(${(beanParam)!''});
    }


    @Override
    public List<${(beanName)!''}> select${(beanName)!''}List(${(beanName)!''}Query ${(beanParam)!''}Query)
    {
        return ${(beanParam)!''}Mapper.select${(beanName)!''}List(${(beanParam)!''}Query);
    }


    @Override
    public int insert${(beanName)!''}(${(beanName)!''} ${(beanParam)!''})
    {
        return ${(beanParam)!''}Mapper.insert${(beanName)!''}(${(beanParam)!''});
    }


    @Override
    public int update${(beanName)!''}(${(beanName)!''} ${(beanParam)!''})
    {
        return ${(beanParam)!''}Mapper.update${(beanName)!''}(${(beanParam)!''});
    }


    @Override
    public int delete${(beanName)!''}ById(Long ${keyColumn.columnName})
    {
        return ${(beanParam)!''}Mapper.delete${(beanName)!''}ById(${keyColumn.columnName});
    }


    @Override
    public int delete${(beanName)!''}ByIds(Long[] ${keyColumn.columnName}s)
    {
        return ${(beanParam)!''}Mapper.delete${(beanName)!''}ByIds(${keyColumn.columnName}s);
    }
}
